/**
 * 
 */
package com.framework.util.datasource;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import javax.servlet.http.HttpServletRequest;

import org.apache.ibatis.io.Resources;
import org.apache.logging.log4j.util.PropertiesUtil;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import com.framework.util.PropertiesUtils;

/** 
* @author 李品良: 
* @version 创建时间：2016年7月18日 下午3:01:09 
* 类说明 
*/
/**
 * 保存运行初始化文件位置信息
 * 
 * @author Administrator
 *
 */
public class EnvironmentFileInfo {
	public static Properties jdbc = null;
	public static Properties createdb = PropertiesUtils.getProperties("createdb.properties");
	public static Properties sql_linux = null;
	public static Properties sql_win = null;

	public void initProperties() throws IOException {
		if (jdbc == null) {
			jdbc = Resources.getResourceAsProperties("jdbc.properties");
			sql_linux = Resources.getResourceAsProperties("sql_linux.properties");
			sql_win = Resources.getResourceAsProperties("sql_win.properties");
		}
	}

}
